/**
 * 
 */
package com.vision.core.cm.serv.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.vision.core.cm.db.data.Permission;
import com.vision.core.cm.db.data.Role;
import com.vision.core.cm.exception.RpcException;

/**
 * @author Mark
 *
 */
@RemoteServiceRelativePath("roles")
public interface RoleService extends AbstractService<Role> {
	
	List<Permission> assignPermissions(Role role, List<Permission> permissions) throws RpcException;
	
	List<Permission> unassignPermissions(Role role, List<Permission> permissions) throws RpcException;

}
